package com.sos.vo;

import android.os.Parcel;
import android.os.Parcelable;
/**
 * 联系人
 * **/
public class Contactor implements Parcelable{
	private int id;
	private String name;
	private String phone;
	private String email;
	private int type;
	private int status;
	
	public Contactor(){};
	public Contactor(int id, String name, String phone, int type, int status){
		this.id = id;
		this.name = name;
		this.phone = phone;
		this.type = type;
		this.status = status;
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}	
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}

	private Contactor(Parcel in) {
		id = in.readInt();
		name = in.readString();
		phone = in.readString();
		type = in.readInt();
		status = in.readInt();
	}

	public static final Parcelable.Creator<Contactor> CREATOR = new Parcelable.Creator<Contactor>() {
		public Contactor createFromParcel(Parcel in) {
			return new Contactor(in);
		}

		public Contactor[] newArray(int size) {
			return new Contactor[size];
		}
	};

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeString(name);
		dest.writeString(phone);
		dest.writeInt(type);
		dest.writeInt(status);
	}
}
